#ifndef ZHONGZHIBEAN_H
#define ZHONGZHIBEAN_H
#include "QString"
#include "QJsonObject"
#include "QJsonParseError"
#include "QJsonArray"
#include "QList"

class ZhongZhiBean
{
public:
    int num;//序号，和 角色管理中对应
    QString crop; //农作物
    QString type;// 早产  晚产


private:
    static void createObject(QJsonObject &obj, ZhongZhiBean* zhongzhiBean);

public:
    ZhongZhiBean();
    ZhongZhiBean(int num, QString crop,QString type);

    static QList<ZhongZhiBean> jsonToArray(QByteArray jsonArray);

    static QByteArray ArraytoJson(QList<ZhongZhiBean*> *zhongzhiBeans);
};

#endif // ZHONGZHIBEAN_H
